<template>
	<view class="container">
		<view class="steps">
			<uni-steps :options="list" active-icon="checkbox" :active="active" />
		</view>

		<view class="content">
			<view v-if="active === 0">
				<SimpleInfo @next="handleNext" />
			</view>
			<view v-if="active === 1">
				<CompleteRegister />
			</view>
		</view>
	</view>
</template>

<script setup>
import SimpleInfo from './components/simple-info/simple-info.vue'
import CompleteRegister from './components/complete-register/complete-register.vue'
import { ref } from 'vue'
const active = ref(0)
const list = [
	{
		title: '基本信息'
	},
	{
		title: '完成注册'
	}
]
const handleNext = (number) => {
	active.value = number
}
</script>

<style lang="less" scoped>
.container {
	padding: 60rpx;
	.steps {
	}
}
</style>
